﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Divide:Calculate  //除法
    {
        public override void DisplayResult(double num1,double num2)
        {
            base.DisplayResult(num1,num2);
            this.num1 = num1;
            this.num2 = num2;
            double dis = 0;
            double dis1 = 0;
            dis = num1 / num2;
            dis = num2 / num1;
            Console.WriteLine("{0}/{1}={2}", this.num1, this.num2, dis);
            Console.WriteLine("{0}/{1}={2}", this.num2, this.num1, dis1);
        }

    }
}
